package my.yuan.fkzredis.mapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author: zhaoqiyuan
 * @description: TODO
 * @date: 2021/10/14 15:27
 */
@Component("demoRedisMapper")
public class DemoMapper {
    @Autowired
    private RedisTemplate<String,String> redisTemplate;

    public String get(){
        return redisTemplate.opsForValue().get("a");
    }
}
